package com.multi.mybatis.seata.mapper.store;

import com.multi.mybatis.seata.pojo.Goods;
import org.apache.ibatis.annotations.Param;

/**
 * @author Administrator
 */
public interface GoodsMapper {
    /**
     * 方法功能描述
     *
     * @param goodsId
     * @return com.multi.mybatisplus.seata.pojo.Goods
     */
    Goods selectOneGoods(Long goodsId);

    /**
     * 方法功能描述
     *
     * @param goodsId
     * @param changeAmount
     * @return int
     */
    int updateGoodsStock(@Param("goodsId") Long goodsId, @Param("changeAmount") int changeAmount);
}
